package interfaces.superWidgets.tabs;

import interfaces.superWidgets.InterfaceButton;

public class VerticalTabContent extends AbsTabContent {
	
	protected int buttonHeight;
	
	public VerticalTabContent(int width, int height, int buttonHeight) {
		super(width, height);
		this.buttonHeight = buttonHeight;
	}
	
	@Override
	public void addTabButton(InterfaceButton button) {
		super.addTabButton(button);
		
		button.setSize(getWidth(), buttonHeight);
		button.setY(getHeight() - (getContent().size() * buttonHeight));
		
		layout();
	}
}